import PERMISSION from '../constants/permission';

const menuConfig = [
  {
    label: '可视化展示系统',
    route: '/system/visual',
    permissions: [PERMISSION.VISUAL_DISPLAY],
    children: [
      {
        label: '视频系统',
        route: '/system/visual/video',
      },
      {
        label: '食安业务平台',
        route: '/system/visual/shian',
      },
      {
        label: '巡查轨迹',
        route: '/system/visual/track_page',
      },
    ],
  },
  {
    label: '指挥调度系统',
    route: '/system/dispatch/dispatch',
    permissions: [PERMISSION.COMMAND_MANAGEMENT],
  },
  {
    label: '决策支持系统',
    route: '/system/dispatch/support',
    permissions: [PERMISSION.DECISION_SUPPORT],
  },
  {
    label: '大数据分析系统',
    route: '/system/bigdata',
    permissions: [PERMISSION.FOOD_SAFETY_MAP],
    children: [
      {
        label: '食安地图',
        route: '/system/bigdata/map',
      },
      {
        label: '大数据分析',
        route: '/system/bigdata/analyze',
      },
      {
        label: '信用评价',
        route: '/system/bigdata/profession',
      },
    ],
  },
  {
    label: '预警体系',
    route: '/system/alert',
    permissions: [PERMISSION.EARLY_WARNING_SYSTEM],
    children: [
      {
        label: '预警模型',
        route: '/system/alert/alert_rule',
      },
      {
        label: '主体预警',
        route: '/system/alert/main',
      },
      {
        label: '监管预警',
        route: '/system/alert/supervise',
      },
    ],
  },
  {
    label: '社会共治管理',
    route: '/system/corule',
    permissions: [PERMISSION.SOCIAL_GOVERNANCE],
    children: [
      {
        label: '食安科普',
        route: '/system/corule/exhibition',
      },
      {
        label: '最多跑一次',
        route: '/system/corule/server',
      },
      {
        label: '互动平台',
        route: '/system/corule/interactive',
      },
      {
        label: '食安地图',
        route: '/system/corule/shian_map'
      }
    ],
  },
  {
    label: '数据导入',
    route: '/system/data',
    permissions: [PERMISSION.THIRD_DATA_MANAGEMENT],
    children: [
      {
        label: '移动执法',
        route: '/system/data/mobile_law',
      },
      {
        label: '小作坊',
        route: '/system/data/work_shop',
      },
      {
        label: '抽检检测',
        route: '/system/data/inspect',
      },
      {
        label: '永安通',
        route: '/system/data/yong_an_tong',
      }
    ],
  },
  {
    label: '系统管理',
    route: '/system/manager',
    permissions: [PERMISSION.ROLE_MANAGE, PERMISSION.SUPER_MANAGE],
    children: [
      {
        label: '角色定义',
        route: '/system/manager/role',
        permissions: [PERMISSION.ROLE_MANAGE],
      },
      {
        label: '帐号管理',
        route: '/system/manager/account',
        permissions: [PERMISSION.SUPER_MANAGE],
      },
      {
        label: '系统权限',
        route: '/system/manager/system',
      },
    ],
  },
];


export default menuConfig;
